package com.tuozixuan.camel.git;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;


@Component
public class GitDemoRoute extends RouteBuilder {

	@Override
	public void configure() {
		
//		from("timer:firedOnceTimer?repeatCount=1")
//		.setHeader(GitConstants.GIT_FILE_NAME, constant("test.java"))
//	    .to("git:///tmp/testRepo?operation=add")
//	    .setHeader(GitConstants.GIT_COMMIT_MESSAGE, constant("first commit"))
//	    .to("git:///tmp/testRepo?operation=commit")
//	    .to("git:///tmp/testRepo?operation=push&remotePath=https://foo.com/test/test.git&username=xxx&password=xxx")
//	    .to("git:///tmp/testRepo?operation=createTag&tagName=myTag")
//	    .to("git:///tmp/testRepo?operation=pushTag&tagName=myTag&remoteName=origin");
//		
//		from("git:///tmp/testRepo?type=commit")
//	    .to("");

	}

}
